<?php
$jshopConfig=JSFactory::getConfig();
include(dirname(__FILE__)."/submenu.php");
$rows=$this->rows;
$i=0;
?>
<form action="index.php?option=com_jshopping&controller=config" method="post" name="adminForm" id="adminForm">
<table class="table table-striped">
<thead>
  <tr>
    <th class="title" width ="10">
      #
    </th>
    <th width="20">
      <input type="checkbox" name="checkall-toggle" value="" title="<?php echo JText::_('JGLOBAL_CHECK_ALL'); ?>" onclick="Joomla.checkAll(this)" />
    </th>
    <th align="left" width="35%">
      <?php echo _JSHOP_PAGE; ?>
    </th>
    <th align="left">
      <?php echo _JSHOP_TITLE; ?>
    </th>    
    <th width="50">
        <?php echo _JSHOP_EDIT;?>
    </th>
    <th width="40">
        <?php echo _JSHOP_ID;?>
    </th>
  </tr>
</thead>  
<?php foreach($rows as $row){?>
  <tr class="row<?php echo $i % 2;?>">
   <td>
     <?php echo $i+1;?>
   </td>
   <td>
    <?php echo JHtml::_('grid.id', $i, $row->id);?>
   </td>
   <td>
    <a href='index.php?option=com_jshopping&controller=config&task=seoedit&id=<?php print $row->id?>'>
    <?php if (defined("_JSHP_SEOPAGE_".$row->alias)) print constant("_JSHP_SEOPAGE_".$row->alias); else print $row->alias;?>
    </a>
   </td>
   <td>
    <?php print $row->title;?>
   </td>   
   <td align="center">
        <a href='index.php?option=com_jshopping&controller=config&task=seoedit&id=<?php print $row->id?>'><img src='components/com_jshopping/images/icon-16-edit.png'></a>
   </td>
   <td align="center">
    <?php print $row->id;?>
   </td>
   </tr>
<?php
$i++;
}
?>
<?php $pkey="etemplatevar";if ($this->$pkey){print $this->$pkey;}?>
</table>

<input type="hidden" name="task" value="" />
<input type="hidden" name="hidemainmenu" value="0" />
<input type="hidden" name="boxchecked" value="0" />
</form>